﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title></title>
	    <style type="text/css">
            .style1
            {
                height: 25px;
            }
        </style>
	</head>
	<body style="font-size:17px">
	
	    <p><strong><h1><a name="G1">#G1</a> </h1>
        </strong>
            <strong><h1><a name="G2">#G2</a> Event feed view</h1></strong>When user make an action such as<br />
            1. Follow user<br/>
            2. Unfollow user <br />
            3. Add new question <br />
            4. Add new answer <br />
            5. Comment question <br />
            6. Comment answer <br />
            7. Follow question<br />
            8. Unfollow question<br />
            9. Follow category<br />
            10. Unfollow category <br />
            11. Upvote question <br />
            12. Downvote question <br />
            13. Upvote answer <br />
            14. Downvote answer <br />
            15. Receive gold<br />
            16. Receive credit<br />
            17. Ask other<br />
            18. Cancel ask other <br />
            19. Star question<br />
            20. Unstar question<br />
            21. Offer credit<br />
            22. Offer gold<br />
            System record these actions.<br />
            <h3>1. When user is following question, feeds are added to user according to below 
                events:</h3>
        <strong><h4>a. Add answer</h4></strong>
            <div style="background-color: #C0C0C0; width:50%">Câu trả lời thêm vào câu hỏi<br />
            Title question<br />
            Content question in brief + more link 
                [to open inline full question/answer]<br />
                Num view + Honor points + Num answers + Num following<br />
                Num votes + Answerer<br />
                Content answer in brief + more link [to open inline full question/answer]<br />
            </div>
            <strong><h4>b. If User is also the owner of question, additional feeds are added 
            to user according to below events: </h4></strong>b1. Follow question  <br />
        <div style="background-color: #C0C0C0; width:50%">[Username] theo dõi câu hỏi của 
            bạn<br />
            Title question<br />
            Content question in brief + more link<br />
                Num view + Honor points + Num answers + Num following<br />            
            </div>
        b2. Comment question <br />
        <div style="background-color: #C0C0C0; width:50%">[Username] thảo luận câu hỏi của 
            bạn<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                [Username]
            <br />
            Comment content
            <br />
            [Comment link] to open inline box to input comment<br />            
            </div>
        b3. Upvote question <br />
        <div style="background-color: #C0C0C0; width:50%">[Username] +1 điểm uy tín cho câu hỏi 
            của bạn<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following<br />            
            </div>
        <strong><h4>c. If user is owner of answer, additional feeds are added to user 
            according to below events:</h4>
        </strong>
       c1. Comment answer <br />
       <div style="background-color: #C0C0C0; width:50%">[Username] thảo luận câu trả lời 
           của bạn<br />
            Title question<br />
            Content question in brief + more link 
                <br />            
            </div>
       c2. Upvote answer<br />
       <div style="background-color: #C0C0C0; width:50%">[Username] +1 điểm uy tín cho câu trả lời 
           của bạn<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following<br />
           Num votes + Answerer<br />
           Content answer in brief + more link<br />            
            </div>

            <h3>2. When user is following category, feeds are added to user according to below 
                events:</h3>
        <strong><h4>a. Add new question</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">Câu hỏi thêm vào [Toán 9]<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following</div>
            
        <h4>b. Add new answer&nbsp;</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">Câu trả lời thêm vào [Toán 9]<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following<br />
                Num votes + Answerer<br />
                Content answer in brief + more link</div>

            <h3>3. When user is following user, feeds are added to user according to below 
                events:</h3>
        <strong><h4>a. That user follow other users</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">[Username] theo dõi [Username]</div>
            
        <h4>b. That user add new question</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">[Username] thêm câu hỏi vào [Toán 9]<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following</div>
            
        <h4>c. That user add new answer</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">[Username] thêm câu trả lời vào [Toán 9]<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following<br />
                Num votes + Answerer<br />
                Content answer in brief + more link</div>
            
        <h4>d. That user follow new question</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">[Username] theo dõi câu hỏi<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following</div>
            
        <h4>e. That user follow category</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">[Username] theo dõi [Toán 9]</div>
            
        <h4>f. That user upvote question</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">[Username] +1 điểm uy tín cho câu 
                hỏi<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following</div>
            
        <h4>g. That user upvote answer</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">[Username] +1 điểm uy tín cho câu 
                trả lời<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following<br />
                Num votes + Answerer<br />
                Content answer in brief + more link</div>
        <strong>

            <h3>4. When view latest updates in category, these events are displayed:</h3>
        <h4>a. Add new question</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">Câu hỏi thêm vào [Toán 9]<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following</div>
            
        <strong>

        <h4>b. Add new answer&nbsp;</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">Câu trả lời thêm vào [Toán 9]<br />
            Title question<br />
            Content question in brief + more link 
                <br />
                Num view + Honor points + Num answers + Num following<br />
                Num votes + Answerer<br />
                Content answer in brief + more link</div>

        <strong>

            <h3>5. When view latest updates in question, these events are displayed:</h3>
        <h4>a. Add new question</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">Username thêm câu hỏi</div>
            
        <strong>

        <h4>b. Add new answer&nbsp;</h4>
        </strong>
            <div style="background-color: #C0C0C0; width:50%">Username thêm câu trả lời</div>
            <h4>b. Add new answer&nbsp;</h4>
            <h4>c. Comment question&nbsp;</h4>
            <h4>d. Comment answer&nbsp;</h4>
            <h4>e. Follow question&nbsp;</h4>
            <h4>f. Up/Downvote question&nbsp;</h4>
            <h4>g. Up/Downvote answer&nbsp;</h4>

        <strong>

            <h3>6. When view recent activities of current login user, all events user made are 
                displayed </h3>
        </strong>
        <p>1. Follow user<br/>
            2. Unfollow user <br />
            3. Add new question <br />
            4. Add new answer <br />
            5. Comment question <br />
            6. Comment answer <br />
            7. Follow question<br />
            8. Unfollow question<br />
            9. Follow category<br />
            10. Unfollow category <br />
            11. Upvote question <br />
            12. Downvote question <br />
            13. Upvote answer <br />
            14. Downvote answer <br />
            15. Receive gold<br />
            16. Receive credit<br />
            17. Ask other<br />
            18. Cancel ask other <br />
            19. Star question<br />
            20. Unstar question<br />
            21. Offer credit<br />
            22. Offer gold</p>
            <h1><a name="G3">#G3</a> Hot question view</h1>
        </strong>Hot Question can be seen as HOT according to this rule:<br />
        HOT = num of view:1, honour points:4, num of answers:3, num of following:2
        <br />
        HOT = 4 * honor points + 3 * num of answer + 2 * num of follow + num of view<br />
        <strong><h1><a name="G4">#G4</a> Question view</h1>
        </strong>
        <p>
            <img alt="" src="QuestionShortView.JPG" /></p>

	    <p>
            <strong><table style="width:100%;" border="1">
                <tr>
                    <td valign='top' style="width:20%;">
            <strong>Following icon</strong></td>
                    <td>
                        If user already follow this question, this icon would be non-following icon.<br />
                        Used for following question. When user click this icon, system save 
                        following question to user and ajax change this icon to non-following icon.</td>
                </tr>
                <tr>
                    <td class="style1">
            <strong>Star icon</strong></td>
                    <td class="style1">
                        If user already star this question, this icon would non-star icon.<br />
                        Userd for star this question. When user click this icon, system save following 
                        question to user and ajax change this icon to non-star icon</td>
                </tr>
                <tr>
                    <td>
            <strong>Title question</strong></td>
                    <td>
                        Link to QuestionView page. </td>
                </tr>
                <tr>
                    <td>
            <strong>Category link</strong></td>
                    <td>
                        A category of question which link to QuestionCategory page.</td>
                </tr>
                <tr>
                    <td>
            <strong>DateCreated</strong></td>
                    <td>
                        Date created of question</td>
                </tr>
                <tr>
                    <td>
            <strong>Content of question</strong></td>
                    <td>
                        A short content of question about 40 words</td>
                </tr>
                <tr>
                    <td>
            <strong>More</strong></td>
                    <td>
                        A link to open an inline full content of question using ajax.</td>
                </tr>
                <tr>
                    <td>
            <strong>Up/downvote icon</strong></td>
                    <td>
                        If user already up/downvote question, this icon would be non-down/upvote icon.<br />
                        Used for up/downvote question. When user click this icon, system save the 
                        up/downvote question and ajax change Upvote or Downvote icon to </td>
                </tr>
                <tr>
                    <td>
            <strong>Num View - Num points of honour - Num of answers - Num of folowing - 
            Latest updated date</strong></td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
            </strong>
       </p>
        

        <strong><h1><a name="G5">#G5</a> OPEN question </h1>
        </strong>Open Question are questions have no any answers<strong><h1><a name="G6">#G6</a>
            Cost question </h1>
        </strong>Public user cost 6 credits<br />
        Specific user cost n credits depend on each user
        <br />
        Public collaborators cost 12 credits<br />
        Specific collaborator cost n credits depend on each user
        <strong><h1><a name="G7">#G7</a>
            Similar question </h1>
        </strong>Similar question are question which have title best match with other 
        questions&#39; title<br />
        This search is applied full-text-search on question table.<br />
                

	</body>
</html>